package com.woniuxy;

import com.woniuxy.jdkproxydemo.MyServiceProxyClazz;
import com.woniuxy.service.RbacManagerService;
import com.woniuxy.service.impl.RbacManagerServiceImpl;

/**
 * @Author: 马宇航
 * @Todo: 测试类，测试我们service方法有没有被成功代理
 * @DateTime: 22/03/28/0028 下午 2:19
 * @Component: 成都蜗牛学苑
 **/
public class TestMyProxyDemo {
    public static void main(String[] args) {
        //要通过动态代理，给他生成一个代理对象
        RbacManagerService rbacManagerService = (RbacManagerService) MyServiceProxyClazz.createProxyObject(new RbacManagerServiceImpl());
        rbacManagerService.addOne();
        rbacManagerService.findAll();
        rbacManagerService.findOne();
    }
}
